package basic;

import java.lang.String;

/**
 * Created by Robo on 2021/7/13.
 */
public class StringInternTest {
    public static void main(String[] args) {
        String s1 = new StringBuilder("ja").append("va").toString();
        String s2 = s1.intern();
        System.out.println(s1 == s2);
        System.out.println(s1);
        System.out.println(s2);
    }
}
